package com.tydic.system.domain.bo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.tydic.common.core.validate.AddGroup;
import com.tydic.common.core.validate.EditGroup;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 字典类型业务对象 sys_dict_type
 *
 * @author Michelle.Chung
 */

@Data
public class SysDictTypeBo implements Serializable {

    @Serial
    private static final long serialVersionUID = -7831248641703443563L;
    /**
     * 字典类型id
     */
    @TableId
    @NotBlank(message = "字典类型id不能为空", groups = {EditGroup.class})
    private String id;

    /**
     * 字典名称
     */
    @NotBlank(message = "字典名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String dictName;

    /**
     * 字典类型
     */
    @NotBlank(message = "字典类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String dictType;

    /**
     * 是否系统字典
     */
    @NotBlank(message = "系统字典不能为空", groups = {AddGroup.class, EditGroup.class})
    private String isSys;


}
